<?php

/** @Table("edition_page") */
class edition_page extends Model {

    /** @Column("{'name':'id', 'type':'int','length':'11', 'primaryKey':'true'}") */
    public $id;

    /** @Column("{'name':'edition', 'type':'int','length':'11', 'nullable':'false'}") */
    public $edition;

    /** @Column("{'name':'page', 'type':'varchar', 'length':'255', 'nullable':'false', 'unique','true'}") */
    public $page;

    function __construct() {
        $this->id = -1;
        $this->edition = new edition();
        $this->page = "";
        parent::__construct();
    }

    function construct($id = 0, edition $edition = null, $page = "") {
        $this->id = $id;
        $this->edition = $edition;
        $this->page = $page;
    }

    public function getId() {
        return $this->id;
    }

    public function getEdition() {
        return $this->edition;
    }

    public function getPage() {
        return $this->page;
    }

    public function setId($id = 0) {
        $this->id = $id;
    }

    public function setEdition(edition $edition = null) {
        $this->edition = $edition;
    }

    public function setPage($page = "") {
        $this->page = $page;
    }

}
